package com.tjmc.company.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tjmc.company.api.entity.CompanyReadRecordsEntity;
import com.tjmc.company.api.vo.CompanyReadRecordsVO;
import com.tjmc.recruit.user.vo.ResumeInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CompanyReadRecordsMapper extends BaseMapper<CompanyReadRecordsEntity> {
    /**
     * 分页查询个人被浏览企业
     * @param page 分页条件
     * @param accountId 个人用户ID
     * @return
     */
    IPage<CompanyReadRecordsVO> getCompanyReadRecordsPage(Page page, @Param("accountId") Long accountId);

    Page<ResumeInfoVO> selectReadPage(Page page, Long companyId);
}
